<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>uKernel: port.c File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">uKernel
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">port.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="port_8h_source.html">port.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for port.c:</div>
<div class="dyncontent">
<div class="center"><img src="port_8c__incl.png" border="0" usemap="#port_8c" alt=""/></div>
<map name="port_8c" id="port_8c">
</map>
</div>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a1198faaecdb84f9e87845dea672a37b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a701b7c820e8a0f5fcb04e4cd838b6f17">OSStackType</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#a1198faaecdb84f9e87845dea672a37b2">StkInit</a> (<a class="el" href="types_8h.html#a701b7c820e8a0f5fcb04e4cd838b6f17">OSStackType</a> *tos, <a class="el" href="types_8h.html#a7ff77ba9f298c57ee621b35c801a25cd">task</a> function, void *args, <a class="el" href="types_8h.html#a701b7c820e8a0f5fcb04e4cd838b6f17">OSStackType</a> stack_size)</td></tr>
<tr class="memdesc:a1198faaecdb84f9e87845dea672a37b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">: Initialize the stack of a newly created task.  <a href="#a1198faaecdb84f9e87845dea672a37b2"></a><br/></td></tr>
<tr class="memitem:ab3e2f24cbad5c7798b54dd90a6bfd82d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#ab3e2f24cbad5c7798b54dd90a6bfd82d">OSStartFirstTask</a> ()</td></tr>
<tr class="memitem:a1551a033c36f4d9fed64256320ad1e3e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#a1551a033c36f4d9fed64256320ad1e3e">OSTickStart</a> (void)</td></tr>
<tr class="memitem:a04b35503187113490268d89b18d82191"><td class="memItemLeft" align="right" valign="top"><a class="el" href="port__types_8h.html#a64e458b61bddf0b87a3701578aa7a428">uint_32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#a04b35503187113490268d89b18d82191">OSTickConfig</a> (void)</td></tr>
<tr class="memitem:a0af7232f7a8c719d4eb2f14796141a00"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#a0af7232f7a8c719d4eb2f14796141a00">prvGetRegistersFromStack</a> (uint32_t *pulFaultStackAddress)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a337d2a55414eff06396029a29d08393b"><td class="memItemLeft" align="right" valign="top">volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#a337d2a55414eff06396029a29d08393b">r0</a></td></tr>
<tr class="memitem:ab5e9ac6bcd918f40e76045d37f0d262f"><td class="memItemLeft" align="right" valign="top">volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#ab5e9ac6bcd918f40e76045d37f0d262f">r1</a></td></tr>
<tr class="memitem:a64140587127e00e4a0fdd5384ad2a1f2"><td class="memItemLeft" align="right" valign="top">volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#a64140587127e00e4a0fdd5384ad2a1f2">r2</a></td></tr>
<tr class="memitem:a0c1b64914f6a98061276ea7a15160fa1"><td class="memItemLeft" align="right" valign="top">volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#a0c1b64914f6a98061276ea7a15160fa1">r3</a></td></tr>
<tr class="memitem:a57c3216f5564526de7db51de4a8c9311"><td class="memItemLeft" align="right" valign="top">volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#a57c3216f5564526de7db51de4a8c9311">r12</a></td></tr>
<tr class="memitem:a4eb323e1e8c9b07f8d706e0f255cf956"><td class="memItemLeft" align="right" valign="top">volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#a4eb323e1e8c9b07f8d706e0f255cf956">lr</a></td></tr>
<tr class="memitem:adc0daae67bbf381ca49e5a22fb63813c"><td class="memItemLeft" align="right" valign="top">volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#adc0daae67bbf381ca49e5a22fb63813c">pc</a></td></tr>
<tr class="memitem:ad7fd3742e502aafa29420abb0bd48679"><td class="memItemLeft" align="right" valign="top">volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="port_8c.html#ad7fd3742e502aafa29420abb0bd48679">psr</a></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ab3e2f24cbad5c7798b54dd90a6bfd82d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="port_8c.html#ab3e2f24cbad5c7798b54dd90a6bfd82d">OSStartFirstTask</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a04b35503187113490268d89b18d82191"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="port__types_8h.html#a64e458b61bddf0b87a3701578aa7a428">uint_32</a> <a class="el" href="port_8h.html#a04b35503187113490268d89b18d82191">OSTickConfig</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1551a033c36f4d9fed64256320ad1e3e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="port_8h.html#a1551a033c36f4d9fed64256320ad1e3e">OSTickStart</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0af7232f7a8c719d4eb2f14796141a00"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="port_8h.html#a0af7232f7a8c719d4eb2f14796141a00">prvGetRegistersFromStack</a> </td>
          <td>(</td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>pulFaultStackAddress</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1198faaecdb84f9e87845dea672a37b2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="types_8h.html#a701b7c820e8a0f5fcb04e4cd838b6f17">OSStackType</a>* <a class="el" href="port_8h.html#a1198faaecdb84f9e87845dea672a37b2">StkInit</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="types_8h.html#a701b7c820e8a0f5fcb04e4cd838b6f17">OSStackType</a> *&#160;</td>
          <td class="paramname"><em>tos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#a7ff77ba9f298c57ee621b35c801a25cd">task</a>&#160;</td>
          <td class="paramname"><em>function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>args</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#a701b7c820e8a0f5fcb04e4cd838b6f17">OSStackType</a>&#160;</td>
          <td class="paramname"><em>stack_size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>: Initialize the stack of a newly created task. </p>
<p>: Port specific function. Used to initialize the stack of a newly created task. Is must look as if it was just interrupted. </p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a4eb323e1e8c9b07f8d706e0f255cf956"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint32_t <a class="el" href="port_8c.html#a4eb323e1e8c9b07f8d706e0f255cf956">lr</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="adc0daae67bbf381ca49e5a22fb63813c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint32_t <a class="el" href="port_8c.html#adc0daae67bbf381ca49e5a22fb63813c">pc</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad7fd3742e502aafa29420abb0bd48679"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint32_t <a class="el" href="port_8c.html#ad7fd3742e502aafa29420abb0bd48679">psr</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a337d2a55414eff06396029a29d08393b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint32_t <a class="el" href="port_8c.html#a337d2a55414eff06396029a29d08393b">r0</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab5e9ac6bcd918f40e76045d37f0d262f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint32_t <a class="el" href="port_8c.html#ab5e9ac6bcd918f40e76045d37f0d262f">r1</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a57c3216f5564526de7db51de4a8c9311"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint32_t <a class="el" href="port_8c.html#a57c3216f5564526de7db51de4a8c9311">r12</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a64140587127e00e4a0fdd5384ad2a1f2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint32_t <a class="el" href="port_8c.html#a64140587127e00e4a0fdd5384ad2a1f2">r2</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0c1b64914f6a98061276ea7a15160fa1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint32_t <a class="el" href="port_8c.html#a0c1b64914f6a98061276ea7a15160fa1">r3</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Sun Oct 13 2013 02:33:11 for uKernel by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
